package com.lq.ecoldchain.ui.moneypocket

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/18 0018  20:29
*function by lq
*/
val pocketKodeinModule = Kodein.Module("Pocket_Kodein_Module"){
    bind<PocketViewModel>() with scoped(AndroidLifecycleScope).singleton {
        PocketViewModel()
    }
    bind<MoneyPocketDelegate>() with scoped(AndroidLifecycleScope).singleton {
        MoneyPocketDelegate(instance())
    }
}